	<div id="nav">
		当前位置: <a href="?action=default">管理首页</a> <span>&gt;</span> 碎片列表
	</div>
<script type="text/javascript">
function confirmurl(url,message)
{
	if(confirm(message)) location.href = url;
}
</script>
<!--列表-->
<form id="theform" name="theform" action="?action=block" method="post">
<div class="block">
<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<th style="width: 5%;">选中</th>
	<th style="width: 10%;">排序</th>
	<th style="width: 35%;">碎片名称</th>
	<th style="width: 30%;text-align: center;">调用代码</th>
	<th style="width: 20%;text-align: center;">管理操作</th>
	</tr>
	<? foreach($data as $k => $d){?>
	<tr <? if ($k%2 == 0){?>class="trbgcolor"<? }?>>
		<td><input type="checkbox" name="blockid[]" value="<?=$d['blockid']?>" /></td>
		<td><input name="listorder[<?=$d['blockid']?>]" type="text" size="2" value="<?=$d['listorder']?>" /></td>
		<td>
			<?=$d['blockname']?>
		</td>
		<td class="time">{block('<?=$d[pageid]?>',<?=$d['blockno']?>)}</td>
		<td class="smalltxt" style="text-align: center;"><a href="?action=block&op=update&blockid=<?=$d['blockid']?>">更新</a>|<a href="?action=block&op=edit&blockid=<?=$d['blockid']?>">修改</a>|<? if ($d['disabled']){?><a href="?action=block&op=disable&blockid=<?=$d['blockid']?>&disabled=0" style="color:#FF0000">启用</a><? }else {?><a href="?action=block&op=disable&blockid=<?=$d['blockid']?>&disabled=1">禁用</a><? }?>|<a href="javascript:confirmurl('?action=block&op=del&blockid=<?=$d['blockid']?>','确定要删除‘<?=$d['blockname']?>’吗？');">删除</a></td>
	</tr>
	<? }?>
</table>
</div>
<div class="block"><div style="float:right;"><?=$pageurl?></div></div>
	<div class="tbfootaction">
		<input type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form, 'blockid')" />全选 <button value="true" type="submit" class="submit" name="delsubmit" title="选中即删" onclick="javascript:this.form.action+='&op=del';return confirm('注意：本操作不能恢复，一旦确定删除后，数据将永久消息失，请谨慎操作！');">删除</button> <button value="true" type="submit" class="submit" name="submit" onclick="javascript:this.form.action+='&op=setorder';" title="同一个区块的碎片排序才有意义，区块即pageid,blockno都相同的碎片。排序无须选择，填好序号即可，越小越靠前。">排序</button> <button value="true" type="submit" class="submit" name="submit" onclick="javascript:this.form.action+='&op=refresh';" title="显示数据与后台数据不符时，可刷新缓存数据">刷新全部碎片</button>
	</div>
</form>
<!--列表END-->